part of _;

extension on MainPage_Mine {
  Widget view_user() {
    return YButton(
      color: Colors.white,
      padding: EdgeInsets.all(15),
      child: Row(
        children: [
          YImageCircle(80, 80, globalUserModel!.avatar),
          YSpacer(width: 15),
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(globalUserModel!.name, style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
                YSpacer(height: 10),
                Text("这家伙太懒什么都没写", style: TextStyle(fontSize: 14, color: Colors.grey)),
              ],
            ),
          ),
          Icon(Icons.chevron_right_rounded, color: Colors.grey),
        ],
      ),
      onTap: () => yIntent(UserInfoPage()),
    );
  }
}
